package com.tyq.auth.security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * 自定义访问控制接口
 *
 * @author 谭永强
 * @date 2024-05-21
 */
public interface MyAccessService {

    /**
     * 判断是否有权限访问
     *
     * @param request        请求
     * @param authentication 认证信息
     * @return true:有权限，false:无权限
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
